
app.controller('indexController',function ($scope, loginService) {

    //显示当前登录名
    $scope.showLoginName=function () {
        loginService.loginName().success(
            function (data) {
                $scope.loginName=data.loginName;
            }
        )
    }
});